package com.qst.crop.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;
import org.springframework.data.annotation.Id;

import java.util.Date;

@Setter
@Getter
public class Knowledge {
    @Id
    private Integer knowledgeId;
    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "内容不能为空")
    private String content;
    private String picPath;
    private String ownName;
    private Date createTime;
    private Date updateTime;

}